<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
    <title><?php echo $title; ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    
    <link href="<?php echo base_url();?>css/style.css"  rel="stylesheet" type="text/css" />
    
    <script src="<?php echo base_url();?>js/jquery.js" type="text/javascript" language="Javascript"></script>
    <script src="<?php echo base_url();?>js/functions.js" type="text/javascript" language="Javascript"></script>
    <script src="<?php echo base_url();?>js/ajax.js" type="text/javascript" language="Javascript"></script>
    <script src="<?php echo base_url();?>js/widgets.js" type="text/javascript" language="Javascript"></script>
    <script src="<?php echo base_url();?>js/anylinkmenu.js" type="text/javascript" language="Javascript"></script>
    
    <!--  TagCloud -->
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript"></script>
    <script src="<?php echo base_url();?>js/jimpl_cloud.js" type="text/javascript"></script>
    <script type="text/javascript">
      $(function() {
        $('#tagcloud').tagCloud({separator: '.'});
      });   
    </script>
    <!--  TagCloud -->
    <script type="text/javascript">

        //anylinkmenu.init("menu_anchors_class") //Pass in the CSS class of anchor links (that contain a sub menu)
        anylinkmenu.init("menuanchorclass")
        
        var anylinkmenu2={divclass:'anylinkmenu', inlinestyle:'width:150px;color: white; background:#004b66', linktarget:'_new'} //Second menu variable. Same precaution.
        anylinkmenu2.items=[
                ["Editar Perfil", "<?php echo base_url();?>index.php/usuario/editarPerfil"],
                ["Você Acompanha", "<?php echo base_url()?>index.php/usuario/listaSeguidos"],
                ["Acompanham Você", "<?php echo base_url()?>index.php/usuario/listaSeguidores"],
                ["Sair", "<?php echo base_url()?>index.php/home/logout"] //no comma following last entry!
        ]

        </script>
</head>
  <body>
    <div id="menu_topo">
            <div class="logo"><img src="<?php echo base_url(); ?>img/logo.png" ></div>
            <div class="busca">
                <input type="text" name="busca" value="Dê dicas, pergunte e busque..." size="40" onfocus="limparPadrao(this);" onblur="escreverPadrao(this);" >
                <ul class="icones">
                <?php 
                echo "<li>" . img(array('src' => 'img/icon-search/hint.png',
                                                            'alt' => 'Hint',
                                                            'width' => '16',
                                                            'height' => '16',
                                                            'title' => 'Hint')) . "</li>"; 
                
                echo "<li>" . img(array('src' => 'img/icon-search/question.png',
                                                            'alt' => 'Pergunta',
                                                            'width' => '16',
                                                            'height' => '16',
                                                            'title' => 'Pergunta')) . "</li>"; 
                
                echo "<li>" . img(array('src' => 'img/icon-search/search.png',
                                                            'alt' => 'Procurar',
                                                            'width' => '16',
                                                            'height' => '16',
                                                            'title' => 'Procurar')) . "</li>"; 
                ?>
                </ul>
            </div>
            <div class="sair">
                <?php echo anchor('home/logout', 'Sair') ?>                
            </div>
            <a href="#" class="menuanchorclass someotherclass" rel="anylinkmenu2[click]" rev="lr">
                <div class="perfil" id="user" style="cursor: pointer;">
                    <?php echo img(array("src" => 'upload/thumbs/' . $usuario[0]->avatar, 'title' => $usuario[0]->username, 'width' => 25));?>
                    <p><?php echo $usuario[0]->username;  ?></p>
                    <?php echo img(array("src" => 'img/icon/arrow_down.png', 'title' => "Menu", 'class' => 'arrow'));?>
                </div>
            </a>
            
            <div class="link">
                <ul>
                <?php 
                echo "<li class='selected'>" . anchor('usuario/timeline', img(array('src' => 'img/icon-top/home.png',
                                                            'alt' => 'Home',
                                                            'width' => '30',
                                                            'height' => '30',
                                                            'title' => 'Home'))) . "</li>"; 
                
                echo "<li>" . anchor('usuario/timelineVisitanteView', img(array('src' => 'img/icon-top/profile.png',
                                                            'alt' => 'Perfil',
                                                            'width' => '30',
                                                            'height' => '30',
                                                            'title' => 'Perfil'))) . "</li>"; 
                
                echo "<li>" . anchor('usuario/editarPerfil', img(array('src' => 'img/icon-top/mesage.png',
                                                            'alt' => 'Mensagens',
                                                            'width' => '30',
                                                            'height' => '30',
                                                            'title' => 'Mensagens'))) . "</li>";
                ?>
              </ul>
                
                
            </div>
            
    </div>
        
    </div>
      <div id="geral">
         